// The module 'vscode' contains the VS Code extensibility API
// Import the module and reference it with the alias vscode in your code below
import * as vscode from 'vscode';
import SidebarProvider from "./render/SidebarProvider";

// This method is called when your extension is activated
// Your extension is activated the very first time the command is executed
export function activate(context: vscode.ExtensionContext) {

   
	console.log('Congratulations, your extension "txt-novel-reading" is now active!');

	
    const sidebarProvider = new SidebarProvider(context);
    vscode.window.registerWebviewViewProvider("slidebar-view", 
        sidebarProvider,
        {
            webviewOptions: {
                retainContextWhenHidden: true
            }
        }
    );

}

// This method is called when your extension is deactivated
export function deactivate() {}
